﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using EShop.Core.Model.Store;

namespace EShop.Services.Store
{
    public interface IDimensionService
    {
        /// <summary>
        /// 查询维度，单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Dimension GetDimensionById(string id);

        /// <summary>
        /// 添加维度
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool AddDimension(Dimension model);
        /// <summary>
        /// 修改维度
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdateDimension(Dimension model);
        /// <summary>
        /// 删除维度
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelDimension(string id);
  
        /// <summary>
        /// 取得维度列表
        /// </summary>
        /// <returns></returns>
        IList<Dimension> GetAllDimension();

    }
}
